<table class="dottedborder" width="100%">
  <tr>
    <td class="regulartext">
      <%= render :partial => "result_info" %>
    </td>
  </tr>
  <% if @ads.length > 0 %>
    <tr>
      <td>
        <%= render :partial => "/category/ads", :locals => { :ads => @ads } %>
      </td>
    </tr>
  <% end %>
</table>